<template>
    <el-form class="regbar" label-position="top" size="small">
        <el-form-item label="手机号">
            <el-input placeholder="key in your phone number" style="width: 240px;" clearable>
                <template #append>
                    <el-button type="primary">
                        发送验证码
                    </el-button>
                </template>
            </el-input>
        </el-form-item>
        <el-form-item label="验证码">
            <el-input placeholder="verification code" style="width: 100px;" />
        </el-form-item>
        <el-form-item label="用户名">
            <el-input placeholder="key in your username" style="width: 240px;" clearable/>
        </el-form-item> 
        <el-form-item label="密码">
            <el-input placeholder="key in your password" style="width: 240px;" clearable/>
        </el-form-item> 
        <el-form-item label="确认密码">
            <el-input placeholder="repeat your password" style="width: 240px;" clearable/>
        </el-form-item> 
        <el-checkbox class="al-left">记住账号</el-checkbox>
        <el-button type="primary" style="width: 240px; margin-bottom: 4px;">Proceed!</el-button> 
        <p class="al-left" style="font-size: smaller; margin-top: 0;">已是会员？去<router-link to="../login">登录</router-link></p>
    </el-form> 
</template>

<script>
    export default {
        name: 'RegView',
        data(){
            return{
                size
            }
        }
    }
    const size = ref(0)
    import { ref } from 'vue'
</script>

<style scoped>
span{
    text-align:left;
    /*float: left;*/
    width: 240px;
}
.al-left{
    text-align: left;
}
.regbar{
    box-shadow: var(--el-box-shadow-dark);
    box-shadow: -3px 0 8px -4px;
    border-radius: 4px;
    float: right;
    background-color: aliceblue;
    width: 250px;
    height: 320px;
    padding: 20px;
    padding-top: 5px;
    padding-right: 0;
    margin-right: 100px;
    margin-top: 0;
    text-align:left
}
.el-form-item{
    margin-bottom: 4px;
    margin-top: 5px;
}
a{
  color: #409eff;
  text-decoration: none;
}
</style>
